package com.walker.dicegame;

public class Guy {
	private int startx = 620;
	private int starty = 200;
	
	private int speedx = 0;
	private int speedy = 0;
	
	
	public void update(){
		
		if (startx > 1280){
			startx = 0;
		}else if (startx < 0){
			startx = 1280;
		}
		if (speedx == 0){
			System.out.println("No change to X vel");
		}else{
			startx += speedx;
		}
		
		if (speedy < 0){
			starty += speedy;
		}else if(speedy == 0){
			System.out.println("No change to Y vel");
		}
		
	}
	
	public void moveRight(){
			speedx += 6;
	}
	
	public void moveLeft(){
		speedx += -6;
	}
	
	public void stop(){
		speedx = 0;
	}
	
	public int getx(){
		return startx;
	}
	
	public int gety(){
		return starty;
	}

}
